﻿namespace FFF.Test.Application.AppServices.PublicService.Token
{
    using System;
    using Microsoft.IdentityModel.Tokens;

    /// <summary>
    /// toke的配置
    /// </summary>
    public class TokenAuthConfigurationModel
    {
        /// <summary>
        /// token的key
        /// </summary>
        public SymmetricSecurityKey SecurityKey { get; set; }

        /// <summary>
        /// 是否用户
        /// </summary>
        public string Issuer { get; set; }

        /// <summary>
        /// 认证的值
        /// </summary>
        public string Audience { get; set; }

        /// <summary>
        /// token的验证
        /// </summary>
        public SigningCredentials SigningCredentials { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public TimeSpan Expiration { get; set; }
    }
}
